
package com.gitee.sop.layui.adminserver.module.background.develop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.sop.layui.adminserver.module.background.develop.entity.SysFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: admin
 * @date: 2019-11-14
 * @version: 1.0.0
 */
public interface SysFunctionMapper extends BaseMapper<SysFunction> {

    /**
     * 查询指定fullUri的信息
     *
     * @param fullUri 完整uri路径
     * @return
     */
    SysFunction selectOneByFullUri(@Param(value = "fullUri") String fullUri);

    /**
     * 查询指定功能角色的功能
     *
     * @param roleId 功能角色id
     * @return
     */
    List<SysFunction> selectListByRoleId(@Param("roleId") int roleId);

    /**
     * 查询最大id
     *
     * @return
     */
    int selectMaxId();
}
